package config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * spring的配置类 相当于applicationContext.xml 用于替代xml配置
 *
 *
 * @author 黑马程序员 *
 * @Company http://www.itheima.com
 */
@Configuration
@Import(JdbcConfig.class)//import中的类也会被加载spring容器中bean名字为包名.类名(类的全限定名,beanName:config.JdbcConfig)
@PropertySource("classpath:jdbc.properties")
public class SpringConfiguration {

}
